package org.kiranputtur.phonebook;

/**
 * Contact Class represents an Entry of contact in the PhoneBook
 * @author Kiran Puttur
 * @version 0.1
 * @category Final Project
 */

public class Contact {
	
		private int recNumber;
		private String lastName;
		private String firstName;
		private String phoneNumber;
		
		//no args Constructor 
		public Contact()
		{
		}
		
		//Below constructor takes 5 arguments
public  Contact(int rec, String last, String first, String phone)
{
		setRecordNumber(rec);
		setLastName(last);
		setFirstName(first);
		setPhoneNumber(phone);
} //end constructor

//Lets have the get/set access methods for all 5 arguments.

public void setRecordNumber(int rec)
{
	recNumber = rec;
}

public int getRecordNumber()
{
	return recNumber;
}
		
public void setLastName(String last)
{
	lastName = last;
}

public String getLastName()
{
	return lastName;
}

public void setFirstName(String first)
{
	firstName = first;
}
		 
public String getFirstName()
{
	return firstName;
}

public void setPhoneNumber(String phone)
{
	phoneNumber = phone;
}

public String getPhoneNumber()
{
	return phoneNumber;
}
}